﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_album_images")]
    [Serializable]
    public class Album_Images : ObjectBase<Album_Images>
    {
        public Album_Images() { }

        public Album_Images(Int32 pid, String lng, String title, String content, String pic, DateTime addtime, Int32 isclass, Int32 istop)
        {
            this.pid = pid;
            this.lng = lng;
            this.title = title;
            this.content = content;
            this.pic = pic;
            this.addtime = addtime;
            this.isclass = isclass;
            this.istop = istop;
            this.insert();
        }

        [NotNull(""), Default(0), Column(Length = 11)]
        public Int32 pid { get; set; }

        [NotNull(""), Default("cn"), Column(Length = 50)]
        public String lng { get; set; }

        [NotNull(""), Column(Length = 200)]
        public String title { get; set; }

        [LongText]
        public String content { get; set; }

        [Column(Length = 200)]
        public String pic { get; set; }

        [NotNull("")]
        public DateTime addtime { get; set; }

        [TinyInt, Column(Length = 1), NotNull(""), Default(1)]
        public Int32 isclass { get; set; }

        [TinyInt, Column(Length = 0), NotNull(""), Default(1)]
        public Int32 istop { get; set; }

    }
}
